home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / drivers / mscdex / audio / makefile < prev    next >
Encoding:
Makefile  |  1990-10-15  |  1.3 KB  |  90 lines

  1.  
  2. # NMAKE Compatible makefile for Audio
  3.  
  4. # Modification History:
  5. #
  6. # Date                What
  7. # 08/29/90  JohnYG    Updated for new tree
  8. # 10/01/90  JohnYG    Final (v1.0)
  9. #
  10.  
  11. #
  12. # USAGE:
  13. #   if debug:
  14. #       NMAKE DEBUG=YES
  15. #   else:
  16. #       NMAKE DEBUG=NO
  17. #
  18.  
  19. !if "$(DEBUG)" == "NO"
  20. DEF=
  21. LOPT=
  22. COPT=-Zp -Ox
  23. MOPT=-MX
  24. !else
  25. DEF=-DDEBUG
  26. LOPT=/CO
  27. COPT=-Zpi -Ox
  28. MOPT=-Zi -MX
  29. !endif
  30.  
  31. CC  = cl -c -nologo -AS -W2 $(COPT) $(DEF)
  32. ASM = masm $(MOPT) $(DEF)
  33. LINK= link $(LOPT) /NOD/NOE/MAP/LI
  34. NAME= AUDIO
  35. EXT = EXE
  36.  
  37. OBJ  = audio.obj send.obj
  38. LIBS = slibcer
  39.  
  40.  
  41. .c.obj:
  42.     $(CC) $*.C
  43.  
  44. .asm.obj: 
  45.     $(ASM) $*;
  46.  
  47. goal: $(NAME).$(EXT)
  48.     @echo "Done making $(NAME).$(EXT)"
  49.  
  50. #
  51. # linking step
  52. #
  53.  
  54. $(NAME).$(EXT): $(OBJ)
  55.     $(LINK) @<<
  56.     $(OBJ) ,
  57.     $(NAME).$(EXT) ,
  58.     $(NAME) ,
  59.     $(LIBS) ;
  60. <<
  61.  
  62. !if "$(DEBUG)" != "NO"
  63. #    mapsym $(NAME)
  64. #    cvpack -p $(NAME).$(EXT)
  65. !endif
  66.  
  67.  
  68. clean:
  69.     del $(NAME).$(EXT)
  70.     del *.obj
  71.     del *.map
  72.     del *.sym
  73.  
  74. # depend:
  75. #    mv makefile makefile.old
  76. #    sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
  77. #    del makefile.old
  78. #    echo # START Dependencies >> makefile
  79. #    includes -l *.c *.asm >> makefile
  80. #    echo # END Dependencies >> makefile
  81.  
  82.  
  83. # START Dependencies 
  84.  
  85. audio.obj: audio.c
  86.  
  87. send.obj: send.asm
  88.  
  89. # END Dependencies 
  90.